Parse Claude and Cursor session records separately - #35623
Merged
copyberry[bot] merged 1 commit intoJul 27, 2026
Merged
Conversation
## Why Cursor session messages can place `<cursor_commands>` and `<timestamp>` context before the actual `<user_query>`. Treating both external session formats with one parser left that context in the imported message and generated title. ## What changed - Route detected sessions through format-specific Claude and Cursor parsers. - Strip recognized Cursor context wrappers when extracting a trailing `<user_query>`, while preserving messages with unknown leading context. - Keep shared content-block, tool-call, and timestamp parsing in a common module. ## Testing Add parser coverage for wrapped Cursor queries, unknown context, working-directory precedence, Claude metadata, content hashing, and shared tool annotations. GitOrigin-RevId: b49328d46ab4937e3c599588a3d3081e8ab798cd
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/b49328d46ab4937e3c599588a3d3081e8ab798cd
branch
from
July 27, 2026 14:33
d888e48 to
bd2de42
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/b49328d46ab4937e3c599588a3d3081e8ab798cd
branch
July 27, 2026 14:34
luziyi123448-gif
temporarily deployed
to
issue-triage
July 27, 2026 14:57 — with
GitHub Actions
Inactive
luziyi123448-gif
temporarily deployed
to
issue-triage
July 27, 2026 14:57 — with
GitHub Actions
Inactive
luziyi123448-gif
temporarily deployed
to
issue-triage
July 27, 2026 14:57 — with
GitHub Actions
Inactive
yanivt-jfrog
temporarily deployed
to
issue-triage
July 27, 2026 15:05 — with
GitHub Actions
Inactive
yanivt-jfrog
temporarily deployed
to
issue-triage
July 27, 2026 15:05 — with
GitHub Actions
Inactive
yanivt-jfrog
temporarily deployed
to
issue-triage
July 27, 2026 15:05 — with
GitHub Actions
Inactive
yanivt-jfrog
temporarily deployed
to
issue-triage
July 27, 2026 15:06 — with
GitHub Actions
Inactive
ward-watch-financial
temporarily deployed
to
issue-triage
July 27, 2026 15:19 — with
GitHub Actions
Inactive
ward-watch-financial
temporarily deployed
to
issue-triage
July 27, 2026 15:19 — with
GitHub Actions
Inactive
ward-watch-financial
temporarily deployed
to
issue-triage
July 27, 2026 15:19 — with
GitHub Actions
Inactive
gonzalolarralde
temporarily deployed
to
issue-triage
July 27, 2026 15:49 — with
GitHub Actions
Inactive
gonzalolarralde
temporarily deployed
to
issue-triage
July 27, 2026 15:49 — with
GitHub Actions
Inactive
gonzalolarralde
temporarily deployed
to
issue-triage
July 27, 2026 15:49 — with
GitHub Actions
Inactive
dylantirandaz
temporarily deployed
to
issue-triage
July 27, 2026 16:07 — with
GitHub Actions
Inactive
dylantirandaz
temporarily deployed
to
issue-triage
July 27, 2026 16:07 — with
GitHub Actions
Inactive
dylantirandaz
temporarily deployed
to
issue-triage
July 27, 2026 16:07 — with
GitHub Actions
Inactive
dylantirandaz
temporarily deployed
to
issue-triage
July 27, 2026 16:09 — with
GitHub Actions
Inactive
JavierPiedra
temporarily deployed
to
issue-triage
July 27, 2026 16:31 — with
GitHub Actions
Inactive
JavierPiedra
temporarily deployed
to
issue-triage
July 27, 2026 16:31 — with
GitHub Actions
Inactive
JavierPiedra
temporarily deployed
to
issue-triage
July 27, 2026 16:31 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parse Claude and Cursor session records separately
Why
Cursor session messages can place
<cursor_commands>and<timestamp>contextbefore the actual
<user_query>. Treating both external session formats with oneparser left that context in the imported message and generated title.
What changed
<user_query>, while preserving messages with unknown leading context.Testing
Add parser coverage for wrapped Cursor queries, unknown context, working-directory
precedence, Claude metadata, content hashing, and shared tool annotations.